package n

import android.content.Context
import androidx.preference.PreferenceManager

object Mediator {

    @JvmStatic
    external fun init(context: Context)

    /**
     * 使用AES对[data]进行加密
     * @param data
     * @param secretKey
     * @param iv
     * @param iMode
     * @return
     */
    @JvmStatic
    external fun n0005(data: String?, secretKey: String?, iv: String?, iMode: String?): String? //todo 删掉

    /**
     * 使用AES对[data]进行解密
     * @param data
     * @param secretKey
     * @param iv
     * @param iMode
     * @return
     */
    @JvmStatic
    external fun n0009(data: String?, secretKey: String?, iv: String?, iMode: String?): String? //todo 删掉

    /**
     * 使用AES对[data]进行解密
     * @param data
     * @return
     */
    @JvmStatic
    external fun n0020(data: String): String?

    /**
     * 使用AES对[data]进行解密
     * @param data
     * @return
     */
    @JvmStatic
    external fun n0006(data: String): String?

    /**
     * 获取保存在SP的SN，配合0011，0012，0013，0014，0015空返回使用
     * @param context
     * @return SN-String
     */
    @JvmStatic
    external fun n0016(context: Context?): String

    /**
     * 对比字符串是否一致
     */
    @JvmStatic
    external fun n0880(context: Context, str: String): Boolean

    /**
     * 对比字符串是否一致，返回 字符串1\n字符串2
     */
    @JvmStatic
    external fun n0888(context: Context, string: String, string2: String): String


    @JvmStatic
    external fun n0010(context: Context): String //返回空字符串

    @JvmStatic
    external fun n0011(context: Context): String //返回空字符串

    @JvmStatic
    external fun n0012(context: Context): String //返回空字符串

    @JvmStatic
    external fun n0013(context: Context): String //返回空字符串

    @JvmStatic
    external fun n0014(context: Context): String //返回空字符串

    @JvmStatic
    external fun n0015(context: Context): String //返回空字符串

    init {
        System.loadLibrary("log2")
    }
}